﻿using System;
using System.ComponentModel.DataAnnotations;
using BoneSystem.Business.Entity.Pessoa.SubClass.PessoaFisica;
using BoneSystem.Business.Entity.Pessoa.SubClass.PessoaJuridica;
using BoneSystem.Extensions.Annotations;
using BoneSystem.Extensions.DataAnnotations;

namespace BoneSystem.Business.Entity.Financeiro
{
    public class ContasPagarReceber : PropertiesBase
    {
        [Required]
        [Display(Description = "Pessoa", Name = "Pessoa", Order = 1)]
        [HeaderGridView(EnableFilter = true)]
        [GridColumn(FieldName = "Nome", TableColumnName = "nome", Order = 2, Width = 150) ]
        [GridColumn(FieldName = "RazaoSocial", TableColumnName = "razao_social", Order = 2, Width = 150)]
        //[PessoaCast]
        public virtual Pessoa.Pessoa Pessoa { get; set; }

        [Required]
        [Display(Description = "Data da operação", Name = "Data operação", Order = 2)]
        [HeaderGridView(EnableFilter = true)]
        [GridColumn(TableColumnName = "data_operacao", Order = 2, Width = 150)]
        public virtual DateTime? DataOperacao { get; set; }
        [Required]
        [Display(Description = "Valor", Name = "Valor", Order = 3)]
        [HeaderGridView(EnableFilter = true)]
        [GridColumn(TableColumnName = "valor", Order = 3, Width = 150)]
        public virtual decimal? Valor { get; set; }

        [Display(Description = "Desconto", Name = "Desconto", Order = 2)]
        [HeaderGridView(EnableFilter = true)]
        [GridColumn(TableColumnName = "desconto", Order = 2, Width = 150)]
        public virtual decimal Desconto { get; set; }
        
        [Display(Description = "Juros", Name = "Juros", Order = 2)]
        [HeaderGridView(EnableFilter = true)]
        [GridColumn(TableColumnName = "juros", Order = 2, Width = 150)]
        public virtual decimal Juros { get; set; }

    }
}
